# Column mappings

Information note

For improved metadata performance during discovery and mapping, Compose caches the metadata of the Landing Zones after reading them. However, synchronization issues may arise if the Landing Zone is modified outside of Compose. In such cases, you should click **Clear Landing Cache** in the **Mappings** tab of the **Storage Zone** panel in order to refresh the cache on the next reading of the metadata.

For details on recreating the Storage Zone cache, see [Clearing the metadata cache](https://help.qlik.com/en-US/compose/December2024/Content/ComposeDWDL/Main/DL/Model/Recreating%20the%20Storage%20Zone%20Metadata%20Cache.htm).

The mappings show the current mapping between the Landing Zone tables and the Storage Zone tables. By default, the columns names and data in the Landing Zone tables and the Storage Zone tables will be identical. However, you can manually change the mappings according to your needs, either by simply mapping a Landing Zone column to a different Storage Zone column and/or by using an expression.

## Limitations and considerations

* Creating multiple mappings for a single table is not supported.
* Mapping from Views is not supported.

## Editing column mappings

To edit column mappings:

1. Click the **Manage** button in the **Storage Zone** panel.

   The **Mappings** tab is displayed. Each of the Storage Zone tables has a corresponding mapping name.

2. In the **Mappings** column, click the mapping that you want to edit.

   The **Edit Mapping: Name** window opens.

3. Edit the mapping as described in the table below.

   | **To** | **Do This** |
   | --- | --- |
   | [](https://help.qlik.com/en-US/compose/Content/ComposeDWDL/Main/DL/Storage%20Zone/edit_column_mappings_hive.htm)Map a column in a Landing Zone table to a column in a Storage Zonetable | Information note<br><br>The mapping procedure differs depending on whether you are in Standard View or Compact View. For information on changing the view, see [Change the view](https://help.qlik.com/en-US/compose/December2024/Content/ComposeDWDL/Main/DL/Storage%20Zone/edit_column_mappings_hive.htm#change_view).<br><br>**In Standard View:**<br><br><ol> <li> <p>Hover the mouse cursor over the <span>Landing Zone</span> column name as shown in the image below.</p> <p>A gray dot appears to the right of the column name.</p> <p> <img src="https://help.qlik.com/en-US/compose/December2024/Content/Resources/Images/ComposeForDataLakes/manual_mapping.png" alt=""> </p> </li> <li> <p>Drag the mouse cursor from the gray dot to the desired column in the <span>Storage Zone</span> table.</p> <p> <img src="https://help.qlik.com/en-US/compose/December2024/Content/Resources/Images/ComposeForDataLakes/manual_mapping_2.png" alt=""> </p> </li> <li> <p>When the dotted line turns green (as shown below), release your mouse button.</p> <p>The mapping operation is completed.</p> <p>Note that if the dotted line turns red (instead of a green), you will not be able to map the <span>Landing Zone</span> column with the desired <span>Storage Zone</span> column. A red dotted line indicates that the <span>Landing Zone</span> and <span>Storage Zone</span> column data types are incompatible with each other.</p> </li> </ol><br><br>**In Compact View:**<br><br><ol> <li>Switch to Compact View as described in <a href="https://help.qlik.com/en-US/compose/December2024/Content/ComposeDWDL/Main/DL/Storage Zone/edit_column_mappings_hive.htm#change_view">Change the view</a>.</li> <li>Drag the <span>Landing Zone</span> column to the cell located to the left of the target <span>Storage Zone</span> column.</li> </ol> |
   | Auto-generate mapping | Click the **Auto-Map** toolbar button. |
   | Remove all mappings | Click the **Reset** toolbar button. |
   | [](https://help.qlik.com/en-US/compose/Content/ComposeDWDL/Main/DL/Storage%20Zone/edit_column_mappings_hive.htm)Change the view | Changing to a more compact view is recommended for Landing Zone tables that have numerous columns. In compact view, the table columns are organized in rows (instead of a single list), making it easier to locate Landing Zone columns and map them to the desired Storage Zone columns.<br><br>**To change the view:**<br><br>Click the **Change View** toolbar button. For information on creating mappings in Compact view, see [Map a column in a Landing Zone table to a column in a Data Lake table.](https://help.qlik.com/en-US/compose/December2024/Content/ComposeDWDL/Main/DL/Storage%20Zone/edit_column_mappings_hive.htm#Map_column) |
   | Select a different source database | Select a database from the **Landing Zone Database** drop-down list on the left of the window. |
   | Select a different source schema | Select a schema from the **Schema** drop-down list on the left of the window. |
   | Select a different table | Select a table from the **Table** drop down list on the left of the window. |
   | Create a column-level transformation | <ol> <li> <p>Hover the mouse cursor over the <span>Storage Zone</span> Column for which you want to create a transformation and then click the <span>fx</span> button that appears to its right.</p> <p>The Expression Builder opens.</p> </li> <li>Continue from <a href="https://help.qlik.com/en-US/compose/December2024/Content/ComposeDWDL/Main/DL/Model/create_expressions.htm">Creating transformations</a>.</li> </ol> |

## Adding, renaming and deleting mappings

You can add, rename and delete mappings as required. For example, if you want one of the Storage Zone tables to contain columns from several tables in the Landing Zone, then you need to add a new mapping for each of the Landing Zone tables.

To add, delete, and rename mappings:

1. Click the **Manage** button in the **Storage Zone** panel.

   The **Manage**  **task** **Tasks** window opens.

2. In the left pane, select the desired task**Task**.

3. Select the Mappings tab.

4. Add or delete mappings as described in the following table.

   | **To** | **Do This** |
   | --- | --- |
   | Add a new mapping | <ol> <li>In the <b>Data Lake Tables </b>column, select the table that you want to map.</li> <li> <p>Click the <b>New</b><b>Mapping</b> button above the <b>Delivery Tables </b>column.</p> <p>The<b> New Mapping</b> window opens.</p> </li> <li>Optionally change the default mapping name.</li> <li>From the <b>Entity</b> drop-down list, select the entity in the <span>Storage Zone</span> to which you want to map.</li> <li>Click <b>OK </b>to save the mapping.</li> <li>Enable the mapping.</li> </ol> |
   | Delete a mapping | <ol> <li>In the <b>Mappings </b>column, hover the mouse cursor over the mapping you want to delete.</li> <li>Click the <b>Delete</b><b>(x) </b>button that appears to its right.</li> <li>Click <b>OK </b>when prompted to confirm the deletion.</li> </ol> |
   | Rename a mapping | <ol> <li>In the <b>Mappings </b>column, hover the mouse cursor over the mapping you want to rename.</li> <li> <p>Click the <b>Rename (A) </b>button that appears to its right.</p> <p>The <b>Rename</b> window opens.</p> </li> <li>Specify a new name for the mapping and then click <b>OK.</b></li> </ol> |